import { createSSRApp } from 'vue'
import stores from './stores'
import http from './utils/http'
import App from './App.vue'
import '@/styles/index.scss'
import { message } from '@/utils/ui'

export function createApp() {
  const app = createSSRApp(App)

  app.config.globalProperties.$http = http
  app.config.globalProperties.$message = message

  app.use(stores)

  return {
    app,
  }
}
